﻿from rrDefine import *

#*******************************************************************************
#
#	HUD
#
#*******************************************************************************

def draw_hud(player,t,dlvl):
	s_name=player.name
	s_race=RACES[player.race_type]
	s_class=CLASSES[player.class_type]
	s_hp="HP:%4d"%(player.cur_hp)+"(%4d"%(player.max_hp)+")"
	s_mana="Mana:%4d"%(player.cur_mana)+"(%4d"%(player.max_mana)+")"
	s_pow="Pow:%2d"%(player.power)
	
	s_ac="AC:%2d"%(player.ac)
	s_lvl="Lvl:%2d"%(player.lvl)
	s_exp="Exp:%6d"%(player.exp)
	
	s_gold="$:%6d"%(player.gold)
	s_str="Str:%2d"%(player.stats[STR])
	s_dex="Dex:%2d"%(player.stats[DEX])
	s_con="Con:%2d"%(player.stats[CON])
	s_int="Int:%2d"%(player.stats[INT])
	s_wis="Wis:%2d"%(player.stats[WIS])
	s_cha="Cha:%2d"%(player.stats[CHA])
	
	s_dlvl="Dlvl:%2d"%(dlvl)
	s_size=SIZES[player.size]
	s_t="T:%6d"%(t)
	s_hunger=HUNGER_LVL[player.get_hunger()]+" %4d"%(player.hunger)
	
	#s_hp+" "+s_mana+" "+
	line1=s_name+" the "+s_race+" "+s_class+"\t"+s_hp+" "+s_mana+" "
	line2=s_pow+" "+s_ac+"\t"+s_lvl+" "+s_exp
	line3=s_str+" "+s_dex+" "+s_con+" "+s_int+" "+s_wis+" "+s_cha
	line4=s_gold+" "+s_dlvl+" "+s_t+" "+s_hunger
	
	mvaddstr(21,0,line1)
	mvaddstr(22,0,line2)
	mvaddstr(23,0,line3)
	mvaddstr(24,0,line4)